home *** CD-ROM | disk | FTP | other *** search
-
-
-
- /*Program to turn small letters into Caps.*/
- /*R. McLaughlin*/
-
- /*Includes*/
- #include <stdio.h>
- #include <string.h>
- #include <ctype.h>
- /*Data Structures*/
- #define FALSE 0
- #define FOREVER 1
- #define LOWER "a"
- #define UPPER "z"
- #define MASK 0x20
- int input;
-
- /*Code*/
- main()
- {
- while(FOREVER)
- {
- input=getchar();
- if (input>LOWER)&&(input<UPPER)
- {
- input=input^MASK;
- }
- printf(input);
- }
- }
-
-